export function formatFont(fontSize: number, fontFamily: string, style: 0|1|2 = 0, fontWeight: number = 400) {
    let fontStyle = (() => {
        if(style === 0) {
            return 'normal';
        }
        if(style === 1) {
            return 'italic'
        }
        if(style === 2) {
            return 'oblique'
        }
        return 'normal';
    })();
    let fontVariant = 'normal';
    return `${fontStyle} ${fontVariant} ${fontWeight} ${fontSize}px ${fontFamily}`
}